//
// Created by pc on 2021/9/22.
//
#include <stdio.h>
#include <malloc.h>
#include "oes.h"

int main() {
    int res;
    unsigned char *puchSealListData = NULL;
    int puchSealListDataLen;

    res = OSE_GetSealList(puchSealListData, &puchSealListDataLen);
    printf(">> Call OES_GetSealList ret: 0x%08x\n", res);
    printf(">> SealListDataLen: %d\n", puchSealListDataLen);

    puchSealListData = (unsigned char *) calloc(sizeof(unsigned char), puchSealListDataLen);
    res = OSE_GetSealList(puchSealListData, &puchSealListDataLen);
    printf(">> [0x%08x] SealListDataLen: %s\n", res, puchSealListData);

    free(puchSealListData);

    return 0;
}